﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Domain.IServices.ProductionManagement
{
    /// <summary>
    /// 生产工单
    /// </summary>
    public interface IWorkOrderService
    {
        /// <summary>
        /// 生产工单新增
        /// </summary>
        /// <param name="workOrder"></param>
        /// <returns></returns>
        Task<int> AddWorkOrder(WorkOrder workOrder);
        /// <summary>
        /// 生产工单显示
        /// </summary>
        /// <returns></returns>
        Task<List<WorkOrder>> GetAllWorkOrder(int pageIndex = 1, int pageSize = 5);
        /// <summary>
        /// 生产工单修改
        /// </summary>
        /// <param name="workOrder"></param>
        /// <returns></returns>
        Task<int> UpdateWorkOrder(WorkOrder workOrder);
        /// <summary>
        /// 生产工单删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteWorkOrder(int id);

    }
}
